﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;
using System.Reflection;
using System.Diagnostics;

namespace IRC.IRepairClouds.DataLayer.Expressions
{
    [DebuggerDisplay(@"\{{MemberBinding}}")]
    public class MemberBindingBuilder<T>
    {
        public MemberBinding MemberBinding { get; private set; }

        internal MemberBindingBuilder(MemberBinding memberBinding)
        {
            MemberBinding = memberBinding;
        }

        public static implicit operator MemberBinding(MemberBindingBuilder<T> expressionBuilder)
        {
            return expressionBuilder.MemberBinding;
        }

        public static implicit operator MemberBindingBuilder<T>(MemberBinding memberBinding)
        {
            return new MemberBindingBuilder<T>(memberBinding);
        }
    }
}
